package com.luck.api;

import com.luck.model.po.Users;

import java.util.List;

/**
 * Created by Hua wb on 2018/3/14.
 */
public interface UserManager {
    int insert(Users users);

    /**
     * 更新激活账户所需token
     * @param users
     * @return
     */
    int updateUsersToken(Users users);

    /**
     * 激活账户
     * @param token
     * @return
     */
    int updateActivate(String token);

    /**
     * 假删除未激活用户
     * @return
     */
    int deleteNoActivate();

    Users getUsers(int id);

    int delUser(int id);

    List<Users> getUserList(Users users);

    /**
     * 验证登录
     * @param email
     * @param pwd
     * @return
     */
    Users checkUser(String email, String pwd);
}
